package br.com.funaction.eventtcontrollerv2.controller;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

@RequestScoped
@ManagedBean
public class LogoutMB implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	FacesContext contexto = FacesContext.getCurrentInstance();
	HttpSession sessao = (HttpSession) contexto.getExternalContext().getSession(false);

	public LogoutMB(){
		
		sessao.invalidate();
		contexto.getExternalContext().getSessionMap().put("franquia", null);
	}
}